<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="../WEB-INF/includes/templates/generalTemplate.xhtml">
    <ui:define name="content">
        <style>

            .top-bar2{
                border: 1px solid #eeeeee;
            }
        </style>   
        <div align="center"  >
            <div id="main" style="min-height:700px;width:100%;height:auto;" >
                <br/>
                <br/>
                <br/>
                <br/>



                <section  id="services" class="services" >
                    <div class="row" data-view="services" >

                        <div class="row">
                            <div class="columns large-12 large-centered">
                                <section  class="headline">
                                    <h2 style="text-align:left;">

                                        #{messages['page.activateNewUser.tittle1']}
                                    </h2>
                                    <h5 class="subheader" style="text-align:left;">
                                        #{messages['page.activateNewUser.descripcion1']}
                                    </h5>
                                </section>
                            </div>
                        </div>
                        <div class="row">
                            <div class="columns large-12 large-centered">


                                <f:event listener="#{activateNewUserBean.loadParametersActivate()}" type="preRenderView" />
                                <h:form id="activateUser_form">
                                    <p:panel header="Activación Usuario" rendered="#{activateNewUserBean.showAditionalInformation}" >
                                        <p:panelGrid columns="1" >
                                            <h:outputLabel>El usuario ha sido activado exitosamente!!!</h:outputLabel>
                                            <h:form>
                                                <p:commandButton value="Continuar" action="#{activateNewUserBean.registryAditionalInformation}" ajax="false" rendered="#{activateNewUserBean.showAditionalInformation}" ></p:commandButton>
                                            </h:form>
                                        </p:panelGrid>
                                    </p:panel>
                                    <p:panel header="Error en activación Usuario" rendered="#{!activateNewUserBean.showAditionalInformation}" >
                                        <p:panelGrid columns="1" >
                                            <h:outputLabel>El Usuario no se ha podido activar satisfactoriamente!!!</h:outputLabel>
                                            <h:form>
                                                <p:commandButton value="Salir" action="index" ajax="false" rendered="#{!activateNewUserBean.showAditionalInformation}" ></p:commandButton>
                                            </h:form>
                                        </p:panelGrid>
                                    </p:panel>
                                </h:form>
                            </div>
                        </div>
                    </div>
                </section>
            </div>
        </div>
    </ui:define>
</ui:composition>